<template>
  <div class="p-20">测试</div>
  <el-button type="primary" @click="test">测试</el-button>
  <el-icon><i-ep-pointer /></el-icon>
  <!-- 打开一个dialog -->
  <el-dialog
    title="提示"
    v-model="dialogVisible"
    width="30%"
    :close-on-click-modal="false"
    :close-on-press-escape="false"
    :show-close="false"
  >
    <template #footer>
      <el-button type="primary" @click="dialogVisible = false">确定</el-button>
    </template>
  </el-dialog>
  <el-button @click="openDialog">打开一个dialog</el-button>
  <el-button @click="closeDialog">关闭dialog</el-button>

  <div class="w-200 h-200">
    <Material
      type="image"
      url="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg"
      :previewList="['https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg']"
      :sizeAuto="true"
    />
  </div>
  <div class="w-200 h-200">
    <Material
      type="video"
      url="https://obs-hw-bj-yy-wefly-dmp.obs.cn-north-4.myhuaweicloud.com/video/merge2/0FCC6AC6E50DEA4DE4974560AD9E3D15.mp4"
      :sizeAuto="true"
    />
  </div>
</template>

<script setup>
import { testAPI } from "@/request/apis/user.js"
function test() {
  console.log("测试");
  testAPI().then((res) => {
    console.log(res)
  })
}
import { ref } from "vue";
const dialogVisible = ref(false);
function openDialog() {
  dialogVisible.value = true;
  console.log(dialogVisible.value)
}
function closeDialog() {
  dialogVisible.value = false;
}

</script>

<style lang="scss" scoped></style>
